<?php /* Smarty version 2.6.26, created on 2016-05-11 15:52:31
         compiled from banji.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'css', 'banji.php', 10, false),)), $this); ?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../login/out.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	
		
	<link rel="stylesheet" type="text/css" href="Public/bootstrap/css/bootstrap.min.css"/>
	<?php echo smarty_function_css(array('file' => "Public/yangshi/css/index.css"), $this);?>

	<!--<style type="text/css">
		body{
			background: url("Public/yangshi/img/66.jpg");
		}
	</style>-->
</head>
<body>
<table class="table table-hover" style="width: 800px;margin:30px auto">
  	<div id="aaa" style="width: 800px;margin:30px auto">
  		 
		<a href="index.php?a=add"><button type="button" class="btn btn-success">添加班级</button></a>
	</div>
		<tr>
				<td>班级uid</td>
				<td>班级名称</td>
				<td>操作</td>
			</tr>
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
			<tr>
				<td><?php echo $this->_tpl_vars['v']['uid']; ?>
</td>
				<td><?php echo $this->_tpl_vars['v']['class']; ?>
</td>
				<td>
					<!--index.php?a=guanli&y=<?php echo $this->_tpl_vars['v']['class']; ?>
   获取要管理那个班级-->
					<a href="index.php?c=Stu&a=guanli&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
"><button type="button" class="btn btn-info">管理班级学生</button></a>
					<a href="index.php?a=edit&z=<?php echo $this->_tpl_vars['v']['uid']; ?>
"><button type="button" class="btn btn-primary">编辑班级</button></a>
					<a href="index.php?a=delete&z=<?php echo $this->_tpl_vars['v']['uid']; ?>
"><button type="button" class="btn btn-danger">删除班级</button></a>
				</td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
</table>
</div>
</body>
</html>